import "./assets/main.scss"
import { createApp } from 'vue'

//导入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入ElementPlus中文语言包
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//导入路由
import { router } from "./router/index"
// 导入Pinia
import {  createPinia } from 'pinia'
//导入持久化
// import persist from 'pinia-plugin-persist'
//导入持久化组件pinia-plugin-persistedstate
import piniaPluginPersistedstate  from "pinia-plugin-persistedstate"

//导入App
import App from './App.vue'

const app =  createApp(App)
//创建状态存储管理
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)
app.use(pinia)

//注册路由
app.use(router)
//注册ui组件
app.use(ElementPlus,{locale: zhCn})

app.mount('#app')
